/*
 * > /*
>  * INSANE - Interactive Structural Analysis Environment
>  *
>  * Copyright (C) 2003-2004
>  * Universidade Federal de Minas Gerais
>  * Escola de Engenharia
>  * Departamento de Engenharia de Estruturas
>  *
>  * Author's email :     insane@dees.ufmg.br
>  * Author's Website :   http://www.dees.ufmg.br/insane
>  *
>  * This program is free software; you can redistribute it and/or
>  * modify it under the terms of the GNU General Public License
>  * as published by the Free Software Foundation; either version 2
>  * of the License, or any later version.
>  *
>  * This program is distributed in the hope that it will be useful,
>  * but WITHOUT ANY WARRANTY; without even the implied warranty of
>  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
>  * GNU General Public License for more details.
>  *
>  * You should have received a copy of the GNU General Public License
>  * along with this program; if not, write to the Free Software
>  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-
> 1307, USA.
 *
 */

package br.ufmg.dees.insane.xyplot.xyplot_view;

import java.awt.Color;
import java.awt.Font;
import java.io.Serializable;

/**
 * A class representing the state of the model.
 * @author  	Penna, Samuel & Pitangueira, Roque
 * @see xyplot_view.InterfaceXYPlot
 * @see xyplot_view.DrawingArea
 * @since    april 2005
 */
public class TitleViewState implements Serializable {

	/**
	 * Comment for <code>serialVersionUID</code>
	 */
	private static final long serialVersionUID = 1L;
	private Color 	color = Color.RED;
	private boolean isTitleOn = true;
	private int 	titleSize = 20;
	private String 	titleFont = "Arial";
	private byte 	titleStyle = Font.PLAIN;
	private double  xCenterPosition = 0.0;
	private double  yCenterPosition = 0.0;
	private double  titleAngle = 0.0;
	
	/**
	 * @return  Returns the color.
	 * @uml.property  name="color"
	 */
	public Color getColor(){
		return color;
	}
	
	/**
	 * @return
	 * @uml.property  name="isTitleOn"
	 */
	public boolean isTitleOn(){
		return isTitleOn;
	}
	
	/**
	 * @return  Returns the titleSize.
	 * @uml.property  name="titleSize"
	 */
	public int getTitleSize(){
		return titleSize;
	}
	
	/**
	 * @return  Returns the titleFont.
	 * @uml.property  name="titleFont"
	 */
	public String getTitleFont(){
		return titleFont;
	}
	
	/**
	 * @return  Returns the titleStyle.
	 * @uml.property  name="titleStyle"
	 */
	public byte getTitleStyle(){
		return titleStyle;
	}
	
	/**
	 * @return  Returns the xCenterPosition.
	 * @uml.property  name="xCenterPosition"
	 */
	public  double getXCenterPosition(){
		return xCenterPosition;
	}
	
	/**
	 * @return  Returns the yCenterPosition.
	 * @uml.property  name="yCenterPosition"
	 */
	public  double getYCenterPosition(){
		return this.yCenterPosition;
	}
	
	public  double getAngle(){
		return titleAngle;
	}
	
	/**
	 * @param color  The color to set.
	 * @uml.property  name="color"
	 */
	public void setColor(Color c){
		this.color = c;
	}
	
	/**
	 * @param isTitleOn  The isTitleOn to set.
	 * @uml.property  name="isTitleOn"
	 */
	public void setTitleOn(boolean m){
		this.isTitleOn =m;
	}
	
	/**
	 * @param titleSize  The titleSize to set.
	 * @uml.property  name="titleSize"
	 */
	public  void setTitleSize(int ts){
		this.titleSize = ts;
	}
	
	/**
	 * @param titleFont  The titleFont to set.
	 * @uml.property  name="titleFont"
	 */
	public  void setTitleFont(String tf){
		this.titleFont = tf;
	}
	
	/**
	 * @param titleStyle  The titleStyle to set.
	 * @uml.property  name="titleStyle"
	 */
	public  void setTitleStyle(byte ts){
		this.titleStyle= ts;
	}
	
	/**
	 * @param xCenterPosition  The xCenterPosition to set.
	 * @uml.property  name="xCenterPosition"
	 */
	public  void setXCenterPosition(double x){
		this.xCenterPosition = x;
	}
	
	/**
	 * @param yCenterPosition  The yCenterPosition to set.
	 * @uml.property  name="yCenterPosition"
	 */
	public  void setYCenterPosition(double y){
		this.yCenterPosition = y;
	}
}